#include "stdafx.h"
#include "SmoothFactory.h"

#include "..\Generators\Smooth.h"
#include "..\Generators\Neighbourhood.h"
#include "../../../Framework/Toolkit.h"

using namespace Framework;

namespace MyGame {

SmoothFactory::SmoothFactory(void) {
}

SmoothFactory::~SmoothFactory(void) {
}

Generator* SmoothFactory::Generate() const {
    Smooth* smooth = new Smooth();
    smooth->SetBlend((FLOAT)Toolkit::RandomFloat());
    smooth->SetIterations(Toolkit::RandomInt(1, 10));
    smooth->SetNeighbourhood((Neighbourhood)(rand() % 2));
    return smooth;
}

}
